import type { App } from "vue";
import { button, menu } from "./permission";

// 全局注册 directive
export function setupDirective(app: App<Element>) {
  // 使 v-button 在所有组件中都可用
  app.directive("button", button);
  app.directive("menu", menu);
}
